export default {
  'POST /admin/article-list': (req,res) => {
    res.json(
      {
        "code": 200,
        "message": "OK",
        "data": {
          "totalCount": 5,
          "list": [
            {
              "id": 5,
              "title": "测试标题5",
              "banner": "https://img.php.cn/upload/webpage/000/013/709/598829a7d3423334.jpg",
              "simpleContent": "测试标题5的测试内容",
              "readNum": 0,
              "username": "JieData",
              "avatar": "https://img.bishijie.com/userlogo-5ff559959d8c3",
              "createdTime": 1621759967,
              "updatedTime": 1621759967,
              content: '<p style="color: red">斤斤计较军军军</p>'
            },
            {
              "id": 4,
              "title": "测试标题4",
              "banner": "https://img.php.cn/upload/webpage/000/013/709/598829a7d3423334.jpg",
              "simpleContent": "测试标题4的测试内容",
              "readNum": 0,
              "username": "JieData",
              "avatar": "https://img.bishijie.com/userlogo-5ff559959d8c3",
              "createdTime": 1621759967,
              "updatedTime": 1621759967,
              content: '<p style="color: red">斤斤计较军军军</p>'
            },
            {
              "id": 3,
              "title": "测试标题3",
              "banner": "https://img.php.cn/upload/webpage/000/013/709/598829a7d3423334.jpg",
              "simpleContent": "测试标题3的测试内容",
              "readNum": 0,
              "username": "JieData",
              "avatar": "https://img.bishijie.com/userlogo-5ff559959d8c3",
              "createdTime": 1621759967,
              "updatedTime": 1621759967,
              content: '<p style="color: red">斤斤计较军军军</p>'
            },
            {
              "id": 2,
              "title": "测试标题2",
              "banner": "https://img.php.cn/upload/webpage/000/013/709/598829a7d3423334.jpg",
              "simpleContent": "测试标题2的测试内容",
              "readNum": 0,
              "username": "JieData",
              "avatar": "https://img.bishijie.com/userlogo-5ff559959d8c3",
              "createdTime": 1621759967,
              "updatedTime": 1621759967,
              content: '<p style="color: red">斤斤计较军军军</p>'
            },
            {
              "id": 1,
              "title": "测试标题1",
              "banner": "https://img.php.cn/upload/webpage/000/013/709/598829a7d3423334.jpg",
              "simpleContent": "测试标题1的测试内容",
              "readNum": 0,
              "username": "JieData",
              "avatar": "https://img.bishijie.com/userlogo-5ff559959d8c3",
              "createdTime": 1621759967,
              "updatedTime": 1621759967,
              content: '<p style="color: red">斤斤计较军军军</p>'
            }
          ]
        }
      }
    )
  },
  'POST /admin/add-article': (req,res) => {
    setTimeout(() => {
      res.json( {
        "code": 200,
        "message": "OK",
        "data": {
          "title": "标题"
        }
      })
    },500)
  },
  'POST /admin/update-article/:id': (req,res) => {
    setTimeout(() => {
      res.json({
        "code": 200,
        "message": "OK",
        "data": true
      })
    },500)
  },
  'POST /admin/delete-article/:id': (req,res) => {
    setTimeout(() => {
      res.json({
        "code": 200,
        "message": "OK",
        "data": true
      })
    },500)
  }
}
